package com.educate.device.dao;

import com.educate.device.dao.impl.DeviceDaoImpl;
import com.educate.device.model.bo.DeviceBO;
import com.educate.device.model.po.Device;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface DeviceDao extends MongoRepository<Device, String> {

    /**
     * #{@link DeviceDaoImpl#query(DeviceBO, Pageable)}
     */
    Page<Device> query(DeviceBO bo, Pageable pageable);
}
